package com.itheima.singleton.demo4;

/**
 * @author zzw
 * @date 2025/8/10
 * @description 懒汉式-线程不安全
 */
public class Client {
    public static void main(String[] args) {
        //创建Singleton对象
        Singleton instance1 = Singleton.getInstance();
        Singleton instance2 = Singleton.getInstance();

        System.out.println(instance1 == instance2);
    }
}
